package com.irs.service.impl;

import com.irs.mapper.GoodsMapper;
import com.irs.pojo.Goods;
import com.irs.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsServiceImpi implements GoodsService{
@Autowired
private GoodsMapper goodsMapper;
    @Override
    public int insert(Goods goods) {
        return goodsMapper.insert(goods);
    }

    @Override
    public int insertList(List<Goods> pojo) {
        return 0;
    }

    @Override
    public List<Goods> select(Goods pojo) {
        return goodsMapper.select(pojo);
    }

    @Override
    public int update(Goods goods) {
        return goodsMapper.update(goods);
    }

    @Override
    public void delete(int id) {
        goodsMapper.delete(id);
    }

    @Override
    public Goods selectgoods(int id) {
        return goodsMapper.selectgoods(id);
    }

    @Override
    public Goods checkGood(String empName) {
        return goodsMapper.checkGood(empName);
    }

    @Override
    public List<Goods> selectkey(String key) {
        return goodsMapper.selectkey(key);
    }

}
